package com.lei2j.facade;

/**
 * Created by lei2j on 2019/1/27.
 */
public class TestFacade {

    public static void main(String[] args) {
        Amplifier amplifier = new Amplifier();
        DvdPlayer dvdPlayer = new DvdPlayer();
        CdPlayer cdPlayer = new CdPlayer();
        PopcornPopper popcornPopper = new PopcornPopper();
        Projector projector = new Projector();
        Screen screen = new Screen();
        TheaterLights theaterLights = new TheaterLights();
        Tuner tuner = new Tuner();
        MovieFacade movieFacade = new MovieFacadeImpl(amplifier, dvdPlayer, cdPlayer, popcornPopper, projector, screen, theaterLights, tuner);
        movieFacade.watchMoive("哈哈哈");
        movieFacade.endMoive();
    }
}
